export const sexOptions = [
    {value: 1, label: '男', tagType: 'success'}, {value: 2, label: '女', tagType: 'primary'}
]

export const stateOptions = [
    {value: 1, label: '启用', tagType: 'primary'}, {value: 2, label: '禁用', tagType: 'warning'}
]

export const isShowOptions = [
    {value: 1, label: '显示', tagType: 'primary'}, {value: 2, label: '不显示', tagType: 'warning'}
]

export const keepAliveOptions = [
    {value: 1, label: '开启', tagType: 'primary'}, {value: 2, label: '不开启', tagType: 'warning'}
]

export const manageTypeOptions = [
  {value: 1, label: '入库', tagType: 'primary'}, {value: 2, label: '出库', tagType: 'warning'}
]

export const imgTypeOptions = ["image/jpeg", "image/png", "image/gif", "image/svg+xml", 'image/webp'];

export const fileTypeOptions = ["application/msword", "application/vnd.ms-excel", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", "text/plain", "application/pdf", "application/x-zip-compressed"];

export const ruleBlur = { required: true, message: "必填", trigger: "blur" };
export const ruleChange = { required: true, message: "必填", trigger: "change" };

export const defaultChildMenu = {
    name: "",
    code: "",
    path: "",
    permission: "",
    component: "",
    routerViewName: "",
    sort: 0,
    isShow: 2,
    keepAlive: 2,
    state: 1,
}

export const initChildMenus = [
  {
    name: "新增",
    code: "add",
    path: "add",
    permission: "add",
    component: "add",
    routerViewName: "",
    sort: 0,
    isShow: 2,
    keepAlive: 2,
    state: 1,
  },
  {
    name: "编辑",
    code: "edit",
    path: "edit",
    permission: "edit",
    component: "edit",
    routerViewName: "",
    sort: 0,
    isShow: 2,
    keepAlive: 2,
    state: 1,
  },
  {
    name: "删除",
    code: "delete",
    path: "",
    permission: "delete",
    component: "",
    routerViewName: "",
    sort: 0,
    isShow: 2,
    keepAlive: 2,
    state: 1,
  },
]